package com.excesys.exsecs.energy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.excesys.exsecs.energy.entity.EnergyInput;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EnergyInputMapper extends BaseMapper<EnergyInput> {

	Double sumPowerList(@Param("energyType") String energyType,@Param("unitNo") String unitNo,@Param("timeValue") String timeValue);

	List<Map<String, Object>> chartYearPower(@Param("energyType") String energyType,@Param("unitNo") String unitNo,@Param("timeValue") String timeValue);

	List<Map<String, Object>> powerSortRank(@Param("energyType") String energyType, @Param("idList") List<String> idList,@Param("timeValue") String timeValue);
}